import * as types from './mutation-type'
import {
  saveSearch
} from '@/assets/js/catch'

// 首页搜索记录
export const saveSearchHistory = function ({commit}, query) {
  commit(types.SET_SEARCH_HISTORY, saveSearch(query))
};
